package com.zg.autoflow.web;

import com.zg.autoflow.req.SettleWorkflowStepReq;
import com.zg.autoflow.req.SettleWorkflowStepUserReq;
import com.zg.autoflow.service.SettleWorkflowStepService;
import com.zg.autoflow.service.SettleWorkflowStepUserService;
import com.zg.common.core.R;
import com.zg.common.core.dao.autoflow.entity.SettleWorkflowStep;
import com.zg.common.core.dao.autoflow.entity.SettleWorkflowStepUser;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
* @author zg
*/
@Api(tags = {"处理人配置"})
@RestController
@RequiredArgsConstructor
public class SettleWorkflowStepUserController {
	private final SettleWorkflowStepUserService settleWorkflowStepUserService;

	@ApiOperation("获取下一环节处理人")
	@PostMapping("/flow/settleWorkflowStepUser/getNextStepUserList")
	public R<List<String>> getNextStepUserList(@RequestBody SettleWorkflowStepUserReq settleWorkflowStepUserReq) {
		List<String> list =settleWorkflowStepUserService.getNextStepUserList(settleWorkflowStepUserReq);
		return R.success(list);
	}

}
